# makefile for Chips440; after running 'make all', you ought to be able to
# run the game by running 'java chips440.main.Chips440'

JC = javac
JR = java
CWD := $(shell pwd)/chips440
CP = -classpath $(CWD)/main/:$(CWD)/internals/:$(CWD)/tiles/

.SUFFIXES: .java .class

server: clean

client: clean

all: clean
	$(JC)  $(CP) -Xlint:unchecked chips440/*/*.java

javadoc:
	rm -rf javadoc
	mkdir javadoc
	javadoc -d javadoc chips440/*/*.java

clean:
	rm -rf javadoc
	rm -rf chips440/*/*.java~
	rm -rf chips440/*/*.class

default: all
